﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Asteroids.Game
{
    public interface ICollide
    {
        bool IsWithinOf(double range, ICollide collidable);
        bool TestCollideWith(ICollide collidable);
        void Collide(CollideEventArgs e);
        bool IsVulnerable();

        Coordinate Location { get; set; }
        double Radius { get; set; }
    }

    public class CollideEventArgs : EventArgs
    {
        public CollideEventArgs(ICollide collide)
        {
            Collided = collide;
        }

        public ICollide Collided;
    }
}


